else if(spell=="asprator")
{
if(inv_item_number(items,"mana")<250)
{
send_reliable(players[index].peer_id,"sorry you don't have enough mana for that!",0);
return;
}
if(players[index].asprator==true)
{
send_reliable(players[index].peer_id,"please wait for this to end.",0);
return;
}
if(players[index].re>=50)
{
for (uint i=0; i<players.length(); i++)
{
if (players[i].x<players[index].x+5 and players[i].x>players[index].x-5 and players[i].y<players[index].y+5 and players[i].y>players[index].y-5 and get_1d_distance(players[index].z,players[i].z)<=5 and players[i].map==players[index].map)
{
if(players[i].re<=50)
{
return;
}
if(players[i].re>=50)
{
players[index].aspratortimer.restart();
players[index].asprator=true;
players[index].give("mana",-250);
players[index].playsound("asprator");
players{i[.maxhealth=players[i].maxhealth/2;
players[i].stun(12000,true,true);
players[index].maxhealth+=players[i].maxhealth/2;
send_reliable(players[index].peer_id,"you lowered the max health of "+players[i].name+".",0);
}
else
{
send_reliable(players[index].peer_id,"You must have 50 resurrections to do this.",0);
return;
}
}
}
}
}
}